import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { IBaseEntity } from '../00_base/IBaseEntity';
import { JwtUtils } from '../01_auth/jwt.utils';
import { IBaseService } from '../00_base/IBaseService';
import { JwtService } from '@nestjs/jwt';
import { SysDict } from './entities/dict.entity';
import { SysDictType } from './entities/dict.type.entity';
import { DictController } from './dict.controller';
import { DictService } from './dict.service';

@Module({
  imports: [TypeOrmModule.forFeature([IBaseEntity, SysDict, SysDictType])],
  controllers: [DictController],
  providers: [DictService, JwtService, IBaseService, JwtUtils],
  exports: [DictService],
})
export class DictModule {}
